package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2024/01/08
*/
@Data
@ApiModel("问诊即时通讯的记录")
@Table(name = "tbl_twilio_log")
@NoArgsConstructor
@AllArgsConstructor
public class TblTwilioLog extends BaseEntity {
    @Column(name = "log_id")
    private String logId;

    @Column(name = "booking_id")
    private String bookingId;

    /**
     * twillio room ID
     */
    @Column(name = "room_id")
    @ApiModelProperty("twillio room ID")
    private String roomId;

    @Column(name = "room_status")
    private String roomStatus;

    @Column(name = "room_duration")
    private Integer roomDuration;

    @Column(name = "room_type")
    private String roomType;

    /**
     * twillio participant id
     */
    @Column(name = "participant_sid")
    @ApiModelProperty("twillio participant id")
    private String participantSid;

    /**
     * Doctor or Patient ID
     */
    @Column(name = "participant_identity")
    @ApiModelProperty("Doctor or Patient ID")
    private String participantIdentity;

    @Column(name = "participant_status")
    private String participantStatus;

    @Column(name = "participant_duration")
    private Integer participantDuration;

    @Column(name = "sequence_number")
    private Integer sequenceNumber;

    private Date timestamp;

    @Column(name = "timestamp_utc")
    private Date timestampUtc;
}